<?php

/**
 * verwaltung actions.
 *
 * @package    adminslittlehelper
 * @subpackage verwaltung
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
 */
class updateSoftwareAction extends sfAction
{
  /**
   * Executes index action
   *
   */
  public function execute()
  {
    $hardwarehassoftware = new RechnerHasSoftware();

    $hardwarehassoftware->setSoftwareId($this->getRequestParameter('sid'));
    $hardwarehassoftware->setRechnerId($this->getRequestParameter('hid'));

    $hardwarehassoftware->save();
    $this->setFlash('errMessage', 'Daten erfolgreich gespeichert.');
    
    return $this->redirect('management/showOverview?hid='.$this->getRequestParameter('hid').'&id='.$this->getRequestParameter('id').'&view=viewSoftware');
  }
}
